package com.orkhonsoft.tengrinshar.chat.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.orkhonsoft.tengrinshar.chat.entity.FileEntity;
import com.orkhonsoft.tengrinshar.chat.mapper.FileMapper;



@Service("fileService")
public class FileService {
	@Autowired
	private FileMapper filemapper;
	
	public FileEntity queryObject(Long id){
		return filemapper.queryObject(id);
	}
	
	public List<FileEntity> queryList(Map<String, Object> map){
		return filemapper.queryList(map);
	}
	
	public int queryTotal(){
		return filemapper.queryTotal();
	}
	
	public void save(FileEntity file){
		filemapper.save(file);
	}
	
	public void update(FileEntity file){
		filemapper.update(file);
	}
	
	public void delete(Long id){
		filemapper.delete(id);
	}
	
	public void deleteBatch(Long[] ids){
		filemapper.deleteBatch(ids);
	}
	
}
